﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Vux.Chart.Helper
{
    public static class StringHelper
    {

        public static StringFormat Format(this string ip_str_string, StringFormatFlags ip_format_flag)
        {
            var v_str_format = new StringFormat();
            v_str_format.FormatFlags = ip_format_flag;
            return v_str_format;
        }
        public static StringFormat Format(this string ip_str_string, StringFormatFlags ip_format_flag, StringAlignment ip_alignment)
        {
            var v_str_format = new StringFormat();
            v_str_format.Alignment = ip_alignment;
            v_str_format.FormatFlags = ip_format_flag;
            return v_str_format;
        }
    }
}
